package com.dongnaoedu.rpc.redis.server;

import com.alibaba.fastjson.JSON;

public class HandlerResult {
	private final int status;
	private final String msgId;
	private final String data;

	public HandlerResult(int status, String msgId, String data) {
		this.status = status;
		this.msgId = msgId;
		this.data = data;
	}

	public int getStatus() {
		return status;
	}

	public Object getData() {
		return data;
	}

	public String getMsgId() {
		return msgId;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}
